<form name="form_admin" method="POST" action="<?php echo formEditAction()?>" onsubmit="return CheckForm(this);">
<input type="hidden" name="id" value="<?php echo $id?>" />
<input type="hidden" name="type" value="<?php echo $child?>" />
<table width="100%" cellpadding="0" cellspacing="0" id="tbledit">
<?php if($act=="add"){?>
	<tr>
        <td><b>Select</b></td>
        <td>
            <select name="IdParent">
                <?php echo $listOptionParent?>
            </select>
        </td>
    </tr>
<?php 
}else
{
?>
    <tr>
    <td><strong>Name</strong></td>
    <td><strong><?php echo $nameParent;?></strong></td>
    </tr>
    <input type="hidden" name="IdParent" value="<?php echo $promotion['iParentId']?>" />
<?php
}
?>

     <tr>
        <td><b><?php echo Title?></b></td>
        <td><input class="normal3" style="width:90%" type="text" name="Title" id="Title"
		value="<?php echo $promotion["cTitle"] ?>" /></td>
    </tr>   
   
    
    <tr>
        <td><b><?php echo Price?></b></td>
        <td><input class="normal3" style="width:90%" type="text" name="Price" id="Price"
		value="<?php echo $promotion["cPrice"] ?>" /></td>
    </tr>  
    
     
    <tr>
        <td><b>Start Date</b></td>
        <td>
            <?php echo inputDate('StartDate',$promotion["dStartDate"])?>
            <span style="clear:left"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <b>End Date</b>
             <?php echo inputDate('EndDate',$promotion["dEndDate"])?>
       </td>
    </tr>
    
    <tr>
      <td><strong><?php echo getLang('Intro Image')?></strong></td>
      <td>
            <?php echo inputFile('ImgIntro',$promotion["cImage"],'promotion')?>
      </td>
    </tr> 

    <tr>
	        <td valign="top" style="vertical-align:top"><b><?php echo getLang('Description')?></b></td>
	        <td><textarea style="height:350px; width:90%;" id="Intro"
			name="Intro"><?php echo $promotion["cIntro"] ?></textarea></td>
	</tr>
</table>
</form>
<script language="javascript" type="text/javascript">
function CheckForm(f)
{
    if(f.Title.value=='')
    {
        alert('please enter title');
        f.Title.focus();
        return false;
    }
	
}
</script>